package com.linwen.excise.leetcode;

/**
 * @ClassName _3263的幂
 * @Description TODO
 * @Author zero
 * @DATE 2024/9/22 2:33 AM
 * @Version 1.0
 */
public class _3263的幂 {
    static int MAX = (int) Math.pow(3, 19);
    public static void main(String[] args) {
        _3263的幂 inst = new _3263的幂();
        System.out.println(inst.isPowerOfThree(27));
    }
    public boolean isPowerOfThree(int n) {
        return n > 0 && MAX % n == 0;
    }
}
